package com.ruoyi.mall.service;

import com.ruoyi.mall.domain.CustomerAddress;
import com.ruoyi.mall.domain.vo.CustomerAddressVo;
import com.ruoyi.mall.domain.bo.CustomerAddressBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 会员地址Service接口
 *
 * @author wolong
 * @date 2025-02-16
 */
public interface ICustomerAddressService {

    /**
     * 查询会员地址
     */
    CustomerAddressVo queryById(Long customerAddressId);

    /**
     * 查询会员地址列表
     */
    TableDataInfo<CustomerAddressVo> queryPageList(CustomerAddressBo bo, PageQuery pageQuery);

    /**
     * 查询会员地址列表
     */
    List<CustomerAddressVo> queryList(CustomerAddressBo bo);

    /**
     * 新增会员地址
     */
    Boolean insertByBo(CustomerAddressBo bo);

    /**
     * 修改会员地址
     */
    Boolean updateByBo(CustomerAddressBo bo);

    /**
     * 校验并批量删除会员地址信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
